static void
u32_to_hex_u8(unsigned char val, char *buf)
{
- if (val >= 256)
- BUG();
sprintf(buf, "%.02x\n", val);
}
static void
xendbg_send_hex_u8(unsigned char val)
{
- char buf[2];
+ char buf[3];
u32_to_hex_u8(val, buf);
xendbg_send(buf, 2);
}
static void
xendbg_sendrep_hex_u8(unsigned val)
{
- char buf[2];
+ char buf[3];
u32_to_hex_u8(val, buf);
xendbg_sendrep_data(buf, 2);
}
static void
xendbg_sendrep_hex_u32(unsigned val)
{
- char buf[8];
+ char buf[9];
u32_to_hex_u32(val, buf);
xendbg_sendrep_data(buf, 8);
}
unsigned old_s_limit;
dbg_printk("Memory read starting at %lx, length %lx.\n", addr,
- length);
+ length);
old_s_limit = current->addr_limit.seg;
current->addr_limit.seg = ~0;
xendbg_start_reply();